home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9074 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: castle.nando.net!news
  2. From: actuary@nando.net   (Bill McCarthy)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: argc/argv & switches
  5. Date: 8 Mar 1996 03:26:55 GMT
  6. Organization: Nando.net Public Access
  7. Message-ID: <4ho9dv$bcb@castle.nando.net>
  8. References: <4h2j8j$9gn@milo.freenet.vancouver.bc.ca> <danpop.825593142@rscernix> <313E0094.167EB0E7@fore.com> <4hl52oINNa4l@anvil.ugrad.cs.ubc.ca> <danpop.826238070@rscernix>
  9. Reply-To: actuary@nando.net (Bill McCarthy)
  10. NNTP-Posting-Host: grail2314.nando.net
  11. X-Newsreader: IBM NewsReader/2 v1.2
  12.  
  13. In <danpop.826238070@rscernix>,
  14. danpop@mail.cern.ch (Dan Pop) writes:
  15.  
  16. >In <4hl52oINNa4l@anvil.ugrad.cs.ubc.ca>
  17. >c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
  18. >
  19. >>However, if it were the case that these pointers are not modifiable, 
  20. >
  21. >It _is_ the case.  An attempt to modify a pointer from the argv "array" 
  22. >results in undefined behaviour.
  23.  
  24. According to Herbert Schildt, 5.1.2.2.1 states "The parameters argc and
  25. argv and the strings pointed to by the argv array shall be modifiable
  26. by the program, and retain their last-stored values between program
  27. startup and program termination."
  28.  
  29. I'm just reading the standard for the first time, and am only up to page
  30. 26 :-( so be kind - what am I missing?
  31.  
  32. While we're on the standard, Dan, is the "missing period" contained on
  33. page 26 (6.1.3.1)?
  34.  
  35. I've been stuck on this page because (1) the standard seems to define
  36. numbers such as "123" (i.e. a string of 1 or more digits) to be a double
  37. here and as an int in the following section (I peaked :-).  There appears
  38. to be a need for a period at the end of the second line following
  39. "fractional-constant."
  40.  
  41. And (2), negative numbers cannot be doubles?  From experience,
  42. this appears wrong.  But the only sign I see in the syntax is in the
  43. exponent-part.
  44.  
  45. Any help, from anyone, would be appreciated.
  46.  
  47. Bill McCarthy
  48. actuary@nando.net
  49. Wendell, NC  USA
  50.